﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace KnowlegeAssistant
{
    static class Program
    {
        /// <summary>
        /// Главная точка входа для приложения.
        /// </summary>
        [STAThread]
        static void Main()
        {
            
            DatabaseConnect.Open();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //PrintPreviewForm ppf = new PrintPreviewForm(1);
            //ppf.ShowDialog();


            KnowledgeAssistantForm ka = new KnowledgeAssistantForm(true);
            ka.RunLoginForm();
            if (ka.IsLoginIn())
            {
                ka.VisualizeControls();
                ka.StartPosition = FormStartPosition.CenterScreen;
                Application.Run(ka);
            }

        }
    }
}
